//
//  ResponseData.m
//  Kids
//
//  Created by LiTengFei on 14/11/26.
//  Copyright (c) 2014年 90's Technology Co.Ltd. All rights reserved.
//

#import "ResponseData.h"

@implementation ResponseData

- (void)setValue:(id)value forUndefinedKey:(NSString*)key
{
    NSLog(@"%@ is not exist", key);
}

- (void)analyse:(NSDictionary*)data
{
    NSLog(@"%@", data);
    self.result = [[data objectForKey:@"result"] integerValue];

    id info = [data objectForKey:@"info"];
    if ([info isKindOfClass:[NSString class]]) {
        self.info = (NSString*)info;
    }
}
@end
